/*
 * @Date: 2022-02-23 17:06:19
 * @LastEditors: wuyuxin
 * @LastEditTime: 2022-02-23 17:15:57
 * @FilePath: \webpack-learning\26_自定义Loader\loaders\hymd-loader.js
 * @description: 文件描述
 */
const marked = require('marked')

module.exports = function(content) {
  const htmlContent = marked(content)
  const innerContent = "`" + htmlContent + "`";
  const moduleCode = `var code=${innerContent}; export default code;`
  return moduleCode
}